package com.sample.dto;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.io.Serializable;

/**
 * Created by leo.na on 21/03/2017.
 */
public class CustomBody<T> implements Serializable {

    private String message;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    private T data;

    public CustomBody() {
    }

    public CustomBody(String message, T data) {
        this.message = message;
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}